import request from '@/utils/request'
import defaultSettings from '@/settings'
import { praseStrEmpty } from '@/utils/ruoyi'

//借记业务止付应答录入查询
export const apiUrlConfigEntryQuery = {
  queryUrl: `${defaultSettings.ctx.cnapsApp}/bsInformation/businessStopPay/StopPayAnswerEntry/search`,
}


//借记业务止付应答录入明细查询
export const apiUrlConfigEntryDetailQuery = {
  queryUrl: `${defaultSettings.ctx.cnapsApp}/bsInformation/businessStopPay/StopPayAnswerEntry/detailSearch`,
}


//借记业务止付应答审核查询
export const apiUrlConfigApproveQuery = {
  queryUrl: `${defaultSettings.ctx.cnapsApp}/bsInformation/businessStopPay/StopPayAnswerApprove/search`,
}

//借记业务止付应答审核明细查询
export const apiUrlConfigApproveDetailQuery = {
  queryUrl: `${defaultSettings.ctx.cnapsApp}/bsInformation/businessStopPay/StopPayAnswerApprove/detailSearch`,
}


//借记业务止付应答查询
export const apiUrlConfigQueryQuery = {
  queryUrl: `${defaultSettings.ctx.cnapsApp}/bsInformation/businessStopPay/StopPayAnswerQuery/search`,
}


// 借记业务止付应答明细查询明细
export function stopPayAnswerEntryDetail(id) {
  return request({
    url: `${defaultSettings.ctx.cnapsApp}/bsInformation/businessStopPay/StopPayAnswerEntry/detail?id=${id}`,
    method: 'get'
  })
}



// 借记业务止付应答通过
export function stopPayAnswerEntryAgree(data) {
  return request({
    url: `${defaultSettings.ctx.cnapsApp}/bsInformation/businessStopPay/StopPayAnswerEntry/agree`,
    method: 'post',
    data:data
  })
}

// 借记业务止付应答拒绝
export function stopPayAnswerEntryReject(data) {
  return request({
    url: `${defaultSettings.ctx.cnapsApp}/bsInformation/businessStopPay/StopPayAnswerEntry/reject`,
    method: 'post',
    data:data
  })
}




// 借记业务止付应答审核明细
export function stopPayAnswerApproveDetail(id) {
  return request({
    url: `${defaultSettings.ctx.cnapsApp}/bsInformation/businessStopPay/StopPayAnswerApprove/detail?id=${id}`,
    method: 'get'
  })
}

// 借记业务止付应答审核通过
export function stopPayAnswerApproveApprove(data) {
  return request({
    url: `${defaultSettings.ctx.cnapsApp}/bsInformation/businessStopPay/StopPayAnswerApprove/approve`,
    method: 'post',
    data:data
  })
}

// 借记业务止付应答审核拒绝
export function stopPayAnswerApproveReject(data) {
  return request({
    url: `${defaultSettings.ctx.cnapsApp}/bsInformation/businessStopPay/StopPayAnswerApprove/reject`,
    method: 'post',
    data:data
  })
}



// 借记业务止付应答查询明细
export function stopPayAnswerQueryDetail(id) {
  return request({
    url: `${defaultSettings.ctx.cnapsApp}/bsInformation/businessStopPay/StopPayAnswerQuery/detail?id=${id}`,
    method: 'get'
  })
}
